<%@ page language="java"
    import="com.jju.A1541.dao.*"
    contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%
     //获得传递过来的要删除的商品分类id
     String id =request.getParameter("id");
  
    //调用DAO进行删除操作
     int n =LyDAO.delete(Integer.parseInt(id));
    
    //对结果处理
     if(n>0){
    	 response.sendRedirect("products.jsp");
     }else{
    	 out.println("删除失败!");
     }
 %>